Attachment
Overview
Attachments are files that can be associated with an entry. This includes audio files, office documents and etc.
- From version: 2020.20
Properties
attachmentType
attachmentType: AttachmentType
The attachment file's type.
caption
caption: string
The attachment's display name.
fileSize
fileSize: string
The attachment file's size, You can use this property for both showing the file size or to limit uploading of large file attachments.
id
id: string
The attachment's unique id.
Methods
getAttatchmentContent
getAttatchmentContent (): Promise<string>
This function returns the attachment file's data. It is used to download or present the file in the appropriate viewer.
Returns Promise<string>
The actual Attachment's file data.
setAttachmentContent
setAttachmentContent ( data : string): void
This function captures the attachment file's data. It is used to add or change the file.
Parameters
Returns void